Commands for printer devices PRINT command
SCSI-2

11.2.1 FORMAT command

The FORMAT command (see table 206) provides a means for the initiator to specify forms or fonts to printers that support programmable forms or fonts. The format information is peripheral-device specific.

Table 206 - FORMAT command

===============================================================================
|  Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
|Byte |        |        |        |        |        |        |        |        |
|=============================================================================|
| 0   |                           Operation code (04h)                        |
|-----------------------------------------------------------------------------|
| 1   | Logical unit number      |         Reserved         | Format type     |
|-----------------------------------------------------------------------------|
| 2   | (MSB)                                                                 |
|---------                                                                 ---|
| 3   |                           Transfer length                             |
|---------                                                                 ---|
| 4   |                                                                 (LSB) |
|-----------------------------------------------------------------------------|
| 5   |                           Control                                     |
===============================================================================
The format type field specifies the type of format information to be transferred from the initiator to the target. This field is defined in table 207.

Table 207 - Format type

==============================
|  Code  |  Format type      |
|----------------------------|
|   00b  |  Set form         |
|   01b  |  Set font         |
|   10b  |  Vendor-specific  |
|   11b  |  Reserved         |
==============================
The transfer length specifies the length in bytes of format information that shall be transferred during the DATA OUT phase. A transfer length of zero indicates that no format information shall be transferred. This condition shall not be considered as error.